package com.banana.manager.forest.entity.handle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("area_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class AreaBean {
    @TableId(value = "area_id",type = IdType.AUTO)
    private Integer areaId;

    @TableField("area_name")
    private String areaName;
    @TableField("area_Woods")
    private String areaWoods;
    @TableField("area_earth")
    private String areaEarth;
    @TableField("area_top_wood")
    private String areaTopWood;
    @TableField(exist = false)
    private ClassBean classBean;

    public AreaBean(String areaName, String areaWoods, String areaEarth, String areaTopWood) {
        this.areaName = areaName;
        this.areaWoods = areaWoods;
        this.areaEarth = areaEarth;
        this.areaTopWood = areaTopWood;
    }
}
